package oop.constructor;

/**
 * Created with IntelliJ IDEA.
 * ClassName: CustomerTest
 * Package: oop.constructor
 * Description:
 * User: fzykd
 *
 * @Author: LQH
 * Date: 2023-11-20
 * Time: 16:25
 */

public class CustomerTest {
    public static void main(String[] args) {

        //客户
        Customer customer = new Customer("Jane","Smith");

        //账户
        Account account = new Account(1000,2000,0.0123);

        //匿名账户
        customer.setAccount(new Account(1000,2000,0.0123));
        //关于匿名对象

        //目前 客户和账户没有一点关系

        //set简历关系
        customer.setAccount(account);

        //针对客户的账户 进行存钱 和 取钱
        customer.getAccount().deposit(100);

        customer.getAccount().withdraw(960);
        customer.getAccount().withdraw(2000);


        //输出客户信息





    }
}
